package day07.zuoye.four;

public class Worker extends Employee {
    private int days;

    public Worker(int days, int salary) {
        super(salary);
        this.days = days;
    }

    public int getSalary() {
        return days * super.getSalary();
    }
}
